Metaprogramming in Lean ログ
Syntax Quotations
code:memo
Lean.TSyntax `num
Lean.TSyntax
Lean.NumLit
Lean.numLitKind == Lean.TSyntax `num
code:memo
`($x)
`($$x)
`($x:kind) -- kind部分はSyntaxKind
syntax term,* : SomeStx
syntax term* : SomeStx
TSepArray c ","
declare_syntax_cat
code:memo
-- run the function given at the end for each element of the list
syntax "foreach " "term,* "" term : term
macro_rules
| (foreach [ $[$x:term],* ] $func:term) => (let f := $func; [ $f $x,* ]) -- TSepArray `term "," →
code:lean
-- from Lean/Elab/Tactic/Basic.lean
TacticM = ReaderT Context $ StateRefT State TermElabM
let_expr
LeanのMVar
証明の途中における未解決の部分を表すメタ変数?